package com.example.yuecvideo.utils;

import java.util.Random;

public class RandomUtil {
    public static String RandomPlusTime(String account) {
        long timeTemp = System.currentTimeMillis();
        String str = "" + timeTemp + account;
        int length = 10;
        StringBuilder sb = new StringBuilder(length);
        Random random = new Random();
        for(int i =0;i< length ; ++i){
            int index = random.nextInt(str.length());
            sb.append(str.charAt(index));
        }
        String result = sb.toString();
        return result;
    }
}
